package com.huike.web.controller.rule;

import com.huike.core.controller.BaseController;
import com.huike.core.domain.AjaxResult;
import com.huike.service.IRulePoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 线索池规则Controller
 */
@RestController
@RequestMapping("/rule/pool")
public class RulePoolController extends BaseController {
    @Autowired
    private IRulePoolService rulePoolService;

    /**
     * 查询线索池规则列表
     */
    // @PreAuthorize("@ss.hasPermi('clues:pool:list')")
    //@ApiOperation("获取基础信息type=0 线索 type=1 商机")
    @GetMapping("/{type}")
    public AjaxResult getInfo(@PathVariable("type") String type)
    {

        return AjaxResult.success(rulePoolService.selectRulePoolByType(type));
    }
}
